#ifndef USERMESSAGEMAINWINDOW_H
#define USERMESSAGEMAINWINDOW_H

#include <QMainWindow>
#include <QMenuBar>
#include <QTextEdit>
#include "easyInput/easyinput.h"
#include <QMovie>

#define fileName "/even/message.txt"

namespace Ui {
class UserMessageMainWindow;
}

class UserMessageMainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit UserMessageMainWindow(QWidget *parent = nullptr);
    ~UserMessageMainWindow();
    //判断是否填写登录信息
    int judge_sigin_message();
    //显示动态背景
    void show_back_gif();

private slots:

    void on_return_btn_clicked();

    void slotHideInput();

    void on_save_btn_clicked();

private:
    Ui::UserMessageMainWindow *ui;
    void write_User_message_lineEdit();
    void save_User_message_file();
    void widgetInit();
    easyInput *eInput;
    bool inputFlag;//是否开启输入法标志位
    bool eventFilter(QObject *watched,QEvent *event);
};

#endif // USERMESSAGEMAINWINDOW_H
